package kr.saeildamil.androidstudy.ch07;

import kr.saeildamil.androidstudy.R;
import kr.saeildamil.androidstudy.ch04.ButtonAndEditText;
import kr.saeildamil.androidstudy.ch04.ImageViewTest;
import kr.saeildamil.androidstudy.ch05.FrameEx;
import kr.saeildamil.androidstudy.ch05.GravityEx1;
import kr.saeildamil.androidstudy.ch05.KimThIu;
import kr.saeildamil.androidstudy.ch05.PaddingEx;
import kr.saeildamil.androidstudy.ch05.RelativeEx;
import kr.saeildamil.androidstudy.ch05.Table;
import kr.saeildamil.androidstudy.ch06.CellPositionEx;
import kr.saeildamil.androidstudy.ch06.CellSpanEx;
import kr.saeildamil.androidstudy.ch06.CodeLayOut;
import kr.saeildamil.androidstudy.ch06.Inflation5;
import kr.saeildamil.androidstudy.ch06.InflationEx;
import kr.saeildamil.androidstudy.ch06.LayoutParameterEx;
import kr.saeildamil.androidstudy.ch06.MultiPageEx;
import kr.saeildamil.androidstudy.ch06.SetParameterEx;
import kr.saeildamil.androidstudy.ch06.TwoLine;
import kr.saeildamil.androidstudy.ch08.Ch08Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.GridLayout;

public class Ch07Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch07_main);
	}

	public void mOnClick(View v){
		switch(v.getId()){
		case R.id.btnandedit_btn:
			startActivity(new Intent(this, ButtonAndEditText.class));
			break;
		case R.id.imageviewtest_btn:
			startActivity(new Intent(this, ImageViewTest.class));
			break;
		case R.id.main_weight_btn:
			startActivity(new Intent(this, GravityEx1.class));
			break;
		case R.id.main_padding:
			startActivity(new Intent(this, PaddingEx.class));
			break;
		case R.id.main_relative_btn:
			startActivity(new Intent(this, RelativeEx.class));
			break;
		case R.id.Button0111:
			startActivity(new Intent(this, KimThIu.class));
			break;
		case R.id.main_frame_btn:
			startActivity(new Intent(this, FrameEx.class));
			break;
		case R.id.table_btn:
			startActivity(new Intent(this, Table.class));
			break;
		case R.id.multipage_btn:
			startActivity(new Intent(this, MultiPageEx.class));
			break;
		case R.id.codelayout_btn:
			startActivity(new Intent(this, CodeLayOut.class));
			break;
		case R.id.inflarion_btn:
			startActivity(new Intent(this, InflationEx.class));
			break;
		case R.id.main_layoutparameter_btn:
			startActivity(new Intent(this, LayoutParameterEx.class));
			break;
		case R.id.setParameter_btn:
			startActivity(new Intent(this, SetParameterEx.class));
			break;
		case R.id.gridlayout_btn:
			startActivity(new Intent(this, GridLayout.class));
			break;
		case R.id.cellposition_btn:
			startActivity(new Intent(this, CellPositionEx.class));
			break;
		case R.id.cellspan_btn:
			startActivity(new Intent(this, CellSpanEx.class));
			break;
		case R.id.twoline_btn:
			startActivity(new Intent(this, TwoLine.class));
			break;
		case R.id.card_btn:
			startActivity(new Intent(this, Inflation5.class));
			break;
		case R.id.main_customview_btn:
			startActivity(new Intent(this, CustomView.class));
			break;
		case R.id.paintstyle_btn:
			startActivity(new Intent(this, PaintStyle.class));
			break;
		case R.id.prepaint_btn:
			startActivity(new Intent(this, PrePaintEx.class));
			break;
		case R.id.drawbitmap_btn:
			startActivity(new Intent(this, DrawBitmapEx.class));
			break;
		case R.id.drawbitmap2_btn:
			startActivity(new Intent(this, DrawBitmapEx2.class));
			break;
		case R.id.toastlayout_btn2:
			startActivity(new Intent(this, ToastLayoutEx.class));
			break;
		case R.id.main_vibrate_btn:
			startActivity(new Intent(this, Vibrate.class));
			break;
		case R.id.main_drawtex_btn:
			startActivity(new Intent(this, DrawTextEx.class));
			break;
		case R.id.main_ch08_btn:
			startActivity(new Intent(this, Ch08Main.class));
			break;
		}
		
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}


